package com.threea.service.impl;

import com.threea.mapper.FurnitureMapper;
import com.threea.pojo.Furniture;
import com.threea.service.FurnitureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class FurnitureServiceImpl implements FurnitureService {

    @Autowired
    private FurnitureMapper furnitureMapper;

    @Override
    public List<Furniture> getFurnitureAll() {
        return furnitureMapper.getFurnitureAll();
    }

    @Override
    public int deleteFurniture(int id) {
        return furnitureMapper.deleteFurniture(id);
    }
}
